#pragma once

class CommandSettings
{
private:
	ATL::CStringA _text;
	bool _useSendMessage;
	bool _parseText;

public:

	CommandSettings()
	{
	}

	bool Load(PCommand command)
	{
		if(command == NULL)
			return false;

		_text.Empty();
		_text.Append(command->Action.sValue1);

		_useSendMessage = StringToBool(command->Action.bValue1) == TRUE;
		_parseText = StringToBool(command->Action.bValue2) == TRUE;

		return true;
	}

	ATL::CStringA& GetText()
	{
		return _text;
	}

	bool GetUseSendMessage() const
	{
		return _useSendMessage;
	}

	bool GetParseText() const
	{
		return _parseText;
	}
};


